home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
screamin_upstreamin.swf
/
scripts
/
DefineSprite_184
/
frame_1
/
PlaceObject3_68_8
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2012-01-07
|
360b
|
15 lines
onClipEvent(enterFrame){
if(_root.level > 1)
{
if(_Y >= occurrence)
{
var occurrence = Math.round(Math.random() * frequency) + 300;
var xPos = -110 + Math.round(Math.random() * xPosVara);
_Y = startPos;
_X = xPos;
hitObject = "on";
}
_Y = _Y + _root.busSpeed / 2;
}
}